var ChiMoudle = uni.requireNativePlugin("ChiMoudle")

let request2 = (url, method = 'GET', data = {}, dataType = "json", header = {}, charset = "utf-8")=>{
		return new Promise((resolve,reject) => {
				ChiMoudle.fetch({
					url: url,
					method: method,
					data: data,
					charset: charset
				}, e => {
					if(e.code==200){
						resolve(e.res)
					}else{
						reject(e)
					}
				})
				setTimeout(()=>{
					reject()
				},10000)
		})
}
export default request2
